﻿using System;
using System.Collections.Generic;

namespace SortOf
{
    public class BinaryTreeNode<T> where T : IComparable
    {
        public T data { get; set; }
        public BinaryTreeNode<T> left { get; set; }
        public BinaryTreeNode<T> right { get; set; }

        public BinaryTreeNode(T data)
        {
            this.data = data;
        }

        public String toString()
        {
            return data.ToString();
        }

        //de data in de Node wordt geprint
        public void DisplayNode()
        {
            Console.WriteLine(data.ToString());
        }
    }
}
